package cn.marinda.resturants.entity;

import cn.marinda.resturants.annotation.StaffAnnotation;
import com.baomidou.mybatisplus.annotation.*;
import lombok.Data;

import java.util.Date;

/** 员工实体类
 * @date 2021/11/15
 * @author marinda
 */
@Data
@StaffAnnotation
@TableName("r_staff")
public class Staff extends Roles {
    @TableId(value = "uid",type = IdType.UUID)
    private String uid;
    @TableField(value = "join_date")
    private String joinDate;
    @TableField(value = "salary_uid")
    private String salaryUid;
    private char sex;
    private String department;
    private String address;

    @Version
    private int version;
}
